w3counter
An API for w3counter to get the most popular countries, operating systems, screen resolutions and web browsers
Install
$ npm install --save w3counter
Usage
const w3counter = require('w3counter');
w3counter('browser').then(data => {
console.log(data);
});
w3counter('res').then(data => {
console.log(data);
});
API
w3counter(type)
Returns a promise that resolves to an array with the ten most popular items from the type you provided from
w3counter.com.
type
Required
Type: string
What type of items to get. Available types are:
browser
— Ten most popular web browserscountry
— Ten most popular countriesos
— Ten most popular operating systemsres
— Ten most popular screen resolutions
CLI
$ npm install --global w3counter
$ w3counter --help
Usage
$ w3counter <type>
Example
$ w3counter browser
$ w3counter country
$ w3counter os
$ w3counter res
License
MIT © Kevin Mårtensson